package com.ocr;

/*import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.methods.GetMethod;

import com.asprise.util.ocr.OCR;
import com.httpclient.SpiderHttpClientManager;
*/
public class TestOcr {
	
//	public static void main(String[] args) throws IOException{
//		
//		/**  程序要正确的运行 需要执行 java.library 中的native library location
//		 *   不能解析 包含 干扰线的图片
//		 * */
//		HttpClient http = SpiderHttpClientManager.getInstance();
//		GetMethod get = new GetMethod("http://www.skymeetings.net/verify/getImg?id=bTFgJxvBKGKXcWQU");	
//		http.executeMethod(get);
//		BufferedImage image = ImageIO.read(new File("/home/zhutf/Downloads/getImg.jpeg"));
////		BufferedImage image = ImageIO.read(get.getResponseBodyAsStream());
//		String s = new OCR().recognizeBarcode(image);
//		System.out.println("RESULTS: \n"+ s);  
//	}
	
}
